package com.qdlc.p2p.biz.tpp.model;

import com.qdlc.p2p.common.constant.SinaConstant;
import com.qdlc.p2p.common.util.DateUtil;

/**
 * 新浪支付实名接口
 * @author ylx
 * @version 2.0
 * @date 2015年8月10日 下午2:48:26
 */
public class SinaRealName extends SinaModel {
	
	/**
	 * 接口名称 : 开户
	 * 类型（长度）：String(64)
	 */
	private String service = "set_real_name";
	
	/**
	 * 真实姓名
	 */
	private String real_name;
	
	/**
	 * 证件类型，目前只支持身份证（IC）
	 */
	private String cert_type = "IC";
	
	/**
	 * 证件号码
	 */
	private String cert_no;
	
	/**
	 * 是否认证 是否需要钱包做实名认证 Y/N，默认Y
	 */
	private String need_confirm = "Y";
	
	/**
	 * 待签名字符数组
	 */
	private String[] signParamNames=new String[]{"version","service","request_time","partner_id","_input_charset","identity_id","identity_type",
			"real_name","cert_type","cert_no"};
	
	/**
	 * 提交字符数组
	 */
	private String[] subParamNames=new String[]{"version","service","request_time","partner_id","_input_charset","sign","sign_type","identity_id","identity_type",
			"real_name","cert_type","cert_no"};

	public SinaRealName() {
		super();
	}

	public SinaRealName(String real_name, String cert_no, 
			String extend_param, String identity_id) {
		super();
		this.real_name =  real_name;
		this.cert_no = cert_no;
		this.setExtend_param(extend_param);
		this.setIdentity_type("UID");
		this.setIdentity_id(identity_id);
		this.setEncode(SinaConstant.ENCODE_TRUE);
		this.setRequest_time(DateUtil.dateStr3(DateUtil.getNow()));
	}

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}

	/**
	 * 获取真实姓名
	 * 
	 * @return
	 */
	public String getReal_name() {
		return real_name;
	}

	/**
	 * 设置真实姓名
	 * 
	 * @param real_name
	 */
	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}

	/**
	 * 获取证件类型
	 * 
	 * @return
	 */
	public String getCert_type() {
		return cert_type;
	}

	/**
	 * 设置证件类型
	 * 
	 * @param cert_type
	 */
	public void setCert_type(String cert_type) {
		this.cert_type = cert_type;
	}

	/**
	 * 获取证件号码
	 * 
	 * @return
	 */
	public String getCert_no() {
		return cert_no;
	}

	/**
	 * 设置证件号码
	 * 
	 * @param cert_no
	 */
	public void setCert_no(String cert_no) {
		this.cert_no = cert_no;
	}

	/**
	 * 获取是否需要钱包做实名认证
	 * 
	 * @return
	 */
	public String getNeed_confirm() {
		return need_confirm;
	}

	/**
	 * 设置是否需要钱包做实名认证
	 * 
	 * @param need_confirm
	 */
	public void setNeed_confirm(String need_confirm) {
		this.need_confirm = need_confirm;
	}

	public String[] getSignParamNames() {
		return signParamNames;
	}

	public void setSignParamNames(String[] signParamNames) {
		this.signParamNames = signParamNames;
	}

	public String[] getSubParamNames() {
		return subParamNames;
	}

	public void setSubParamNames(String[] subParamNames) {
		this.subParamNames = subParamNames;
	}
	
}
